using System.Linq;
using System.Collections.Generic;
using Managistics.Model;

namespace Managistics.Core.Repositories.Impl
{
    public class InputRepository : RepositoryBase<InputSheet, string>, IInputRepository
    {
        public IList<InputSheet> GetInputSheetsOfOrderId(string orderId)
        {
            return this.Session.QueryOver<InputSheet>()
                                .Where(i => i.PurchaseOrder.Orderid == orderId)
                                .List<InputSheet>();
        }
    }
}